<?php
/**
 * System_Model_EmployeeRoleMapper
 *
 * @author mmxie
 * @copyright Copyright (c) 2009 Green Shore (http://www.iwgame.com)
 * @version $Id: EmployeeRoleMapper.php 165 2011-03-27 04:05:35Z mmxie $
 */
class System_Model_EmployeeRoleMapper extends IG_ModelMapper
{
    public function getEmployeeByRole($roleId)
    {
        return $this->getDbTable()->getEmployeeByRole($roleId);
    }
    
    public function getRoleByEmployee($employeeId)
    {
        return $this->getDbTable()->getRoleByEmployee($employeeId);
    }

    public function saveRoleEmployee($roleId, $employees)
    {
        return $this->getDbTable()->saveRoleEmployee($roleId, $employees);
    }
    
    public function saveEmployeeRole($employeeId, $roles)
    {
        return $this->getDbTable()->saveEmployeeRole($employeeId, $roles);
    }
    
}

